package com.bsoft.gol.hcs.clinical.dao;

import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import ctd.persistence.support.hibernate.HibernateSupportDelegateDAO;
import pcn.sign.PcnIdentity;

/**
 * Created by Suma on 2017/3/28.
 */
public abstract class PcnIdentityDAO extends HibernateSupportDelegateDAO<PcnIdentity> {

    public PcnIdentityDAO() {
        this.setKeyField("id");
    }

    @DAOMethod(sql = "from PcnIdentity where identityCode=:code")
    public abstract PcnIdentity getIdentityByCode(@DAOParam("code") String code);

}
